home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global text
- if the soundBusy of 1 then
- go(the frame)
- else
- puppetSound(0)
- if chapter then
- set the volume of sound 1 to 256
- set the volume of sound 2 to 256
- go("story" & text, "THAtitle")
- else
- if bedtime then
- puppetSprite(4, 1)
- puppetSprite(24, 1)
- set bedtime to bedtime + 1
- puppetTransition(23)
- go("door")
- end if
- end if
- end if
- end
-